package dev.langchain4j.store.embedding.chroma;

import retrofit2.Call;
import retrofit2.http.*;

import java.util.List;

/**
 * @author wu chuang
 * @description
 */

interface ChromaApi1 {
    @GET("api/v2/collections/{collection_name}")
    @Headers({"Content-Type: application/json"})
    Call<Collection> collection(@Path("collection_name") String var1);

    @POST("api/v2/collections")
    @Headers({"Content-Type: application/json"})
    Call<Collection> createCollection(@Body CreateCollectionRequest var1);

    @POST("api/v2/collections/{collection_id}/add")
    @Headers({"Content-Type: application/json"})
    Call<Boolean> addEmbeddings(@Path("collection_id") String var1, @Body AddEmbeddingsRequest var2);

    @POST("api/v2/collections/{collection_id}/query")
    @Headers({"Content-Type: application/json"})
    Call<QueryResponse> queryCollection(@Path("collection_id") String var1, @Body QueryRequest var2);

    @POST("api/v2/collections/{collection_id}/delete")
    @Headers({"Content-Type: application/json"})
    Call<List<String>> deleteEmbeddings(@Path("collection_id") String var1, @Body DeleteEmbeddingsRequest var2);

    @DELETE("api/v2/collections/{collection_name}")
    @Headers({"Content-Type: application/json"})
    Call<Collection> deleteCollection(@Path("collection_name") String var1);
}
